<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
//    var reg = /http:\/\/.*?"/g;
    var reg = />.*?</g;
    var s = '<a href="http://www.abaidu.com">22132</a><a href="http://www.bbaidu.com">1234</a>';

    var r = s.match(reg);
    console.log(r);
</script>
</body>
</html>